const http=require("http")

const server=http.createServer((req,res)=>{
    console.log("进程id:"+process.pid);
    process.send("1231231")
    res.end("进程id:"+process.pid)
})

process.on("message",data=>{
    console.log("子进程收到消息:"+data)
    process.send("子进程收到消息:"+data)
})

server.listen(3000)